<?php
$con = mysql_connect("127.0.0.1","root","quan123456");
if (!$con)
  {
  die('错误1: ' . mysql_error());
  }else{
	  echo 111;die;
  }

// some code

?>